package com.cw.entity;

import com.alibaba.excel.annotation.*;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.io.*;
import java.time.*;
import lombok.*;
import lombok.experimental.*;

/**
 * @author smq
 * @since 2021-04-27
 */
@ApiModel(value = "患者信息")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PATIENT_INFO")
public class PatientInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "就诊类型编码")
    @ExcelProperty(value = "VISIT_TYPE_CODE")
    @TableField("VISIT_TYPE_CODE")
    private String visitTypeCode;

    @ApiModelProperty(value = "就诊类型名称")
    @ExcelProperty(value = "VISIT_TYPE_NAME")
    @TableField("VISIT_TYPE_NAME")
    private String visitTypeName;

    @ApiModelProperty(value = "就诊号")
    @ExcelProperty(value = "VISIT_NO")
    @TableField("VISIT_NO")
        private String visitNo;

    @ApiModelProperty(value = "病人ID")
    @ExcelProperty(value = "PATIENT_ID")
    @TableField("PATIENT_ID")
        private String patientId;

    @ApiModelProperty(value = "病人姓名")
    @ExcelProperty(value = "PATIENT_NAME")
    @TableField("PATIENT_NAME")
        private String patientName;

    @ApiModelProperty(value = "性别编码")
    @ExcelProperty(value = "SEX_CODE")
    @TableField("SEX_CODE")
        private String sexCode;

    @ApiModelProperty(value = "性别名称")
    @ExcelProperty(value = "SEX_NAME")
    @TableField("SEX_NAME")
        private String sexName;

    @ApiModelProperty(value = "身份证号码")
    @ExcelProperty(value = "SFZH")
    @TableField("SFZH")
        private String sfzh;

    @ApiModelProperty(value = "出生年月")
    @ExcelProperty(value = "BIRTHDAY")
    @TableField("BIRTHDAY")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "结算类型")
    @ExcelProperty(value = "ACCOUNT_TYPE")
    @TableField("ACCOUNT_TYPE")
        private String accountType;

    @ApiModelProperty(value = "联系电话")
    @ExcelProperty(value = "TELEPHONE")
    @TableField("TELEPHONE")
        private String telephone;

    @ApiModelProperty(value = "婚姻情况编码")
    @ExcelProperty(value = "MARRY_CODE")
    @TableField("MARRY_CODE")
        private String marryCode;

    @ApiModelProperty(value = "婚姻情况名称")
    @ExcelProperty(value = "MARRY_NAME")
    @TableField("MARRY_NAME")
        private String marryName;

    @ApiModelProperty(value = "身高体重")
    @ExcelProperty(value = "HEIGHT_WEIGHT")
    @TableField("HEIGHT_WEIGHT")
        private String heightWeight;

    @ApiModelProperty(value = "过敏史编码")
    @ExcelProperty(value = "AH_CODE")
    @TableField("AH_CODE")
        private String ahCode;

    @ApiModelProperty(value = "过敏史名称")
    @ExcelProperty(value = "AH_NAME")
    @TableField("AH_NAME")
        private String ahName;

    @ApiModelProperty(value = "生理指标")
    @ExcelProperty(value = "SLZB")
    @TableField("SLZB")
        private String slzb;

    @ApiModelProperty(value = "挂号类型")
    @ExcelProperty(value = "REGISTER_TYPE")
    @TableField("REGISTER_TYPE")
        private String registerType;

    @ApiModelProperty(value = "职业")
    @ExcelProperty(value = "OCCUPATION")
    @TableField("OCCUPATION")
        private String occupation;

    @ApiModelProperty(value = "国籍")
    @ExcelProperty(value = "NATIONALITY")
    @TableField("NATIONALITY")
        private String nationality;

    @ApiModelProperty(value = "籍贯编码")
    @ExcelProperty(value = "NATIVE_PLACE_CODE")
    @TableField("NATIVE_PLACE_CODE")
        private String nativePlaceCode;

    @ApiModelProperty(value = "籍贯名称")
    @ExcelProperty(value = "NATIVE_PLACE_NAME")
    @TableField("NATIVE_PLACE_NAME")
        private String nativePlaceName;

    @ApiModelProperty(value = "现居地")
    @ExcelProperty(value = "CURRENT_RESIDENCE")
    @TableField("CURRENT_RESIDENCE")
        private String currentResidence;

    @ApiModelProperty(value = "工作单位")
    @ExcelProperty(value = "WORK_COMPANY")
    @TableField("WORK_COMPANY")
        private String workCompany;

    @ApiModelProperty(value = "联系人")
    @ExcelProperty(value = "CONTACTER")
    @TableField("CONTACTER")
        private String contacter;

    @ApiModelProperty(value = "与联系人关系")
    @ExcelProperty(value = "RELATION")
    @TableField("RELATION")
        private String relation;

    @ApiModelProperty(value = "联系电话")
    @ExcelProperty(value = "CONTACTER_PHONE")
    @TableField("CONTACTER_PHONE")
        private String contacterPhone;

    @ApiModelProperty(value = "联系地址")
    @ExcelProperty(value = "CONTACTER_ADDR")
    @TableField("CONTACTER_ADDR")
        private String contacterAddr;

    @ApiModelProperty(value = "住院科室编码")
    @ExcelProperty(value = "DEPT_CODE")
    @TableField("DEPT_CODE")
        private String deptCode;

    @ApiModelProperty(value = "住院科室名称")
    @ExcelProperty(value = "DEPT_NAME")
    @TableField("DEPT_NAME")
        private String deptName;

    @ApiModelProperty(value = "病区编码")
    @ExcelProperty(value = "INPATIENT_AREA_CODE")
    @TableField("INPATIENT_AREA_CODE")
        private String inpatientAreaCode;

    @ApiModelProperty(value = "病区名称")
    @ExcelProperty(value = "INPATIENT_AREA_NAME")
    @TableField("INPATIENT_AREA_NAME")
        private String inpatientAreaName;

    @ApiModelProperty(value = "床号编码")
    @ExcelProperty(value = "BED_CODE")
    @TableField("BED_CODE")
        private String bedCode;

    @ApiModelProperty(value = "床号名称")
    @ExcelProperty(value = "BED_NAME")
    @TableField("BED_NAME")
        private String bedName;

    @ApiModelProperty(value = "收治医生编码")
    @ExcelProperty(value = "ADMISS_DOCTOR_CODE")
    @TableField("ADMISS_DOCTOR_CODE")
        private String admissDoctorCode;

    @ApiModelProperty(value = "收治医生名称")
    @ExcelProperty(value = "ADMISS_DOCTOR_NAME")
    @TableField("ADMISS_DOCTOR_NAME")
        private String admissDoctorName;

    @ApiModelProperty(value = "入院诊断")
    @ExcelProperty(value = "ADMISS_DIAGNOSIS")
    @TableField("ADMISS_DIAGNOSIS")
        private String admissDiagnosis;

    @ApiModelProperty(value = "是否日间手术编码")
    @ExcelProperty(value = "IS_DAY_OPER_CODE")
    @TableField("IS_DAY_OPER_CODE")
        private String isDayOperCode;

    @ApiModelProperty(value = "是否日间手术名称")
    @ExcelProperty(value = "IS_DAY_OPER_NAME")
    @TableField("IS_DAY_OPER_NAME")
        private String isDayOperName;

    @ApiModelProperty(value = "入院情况")
    @ExcelProperty(value = "ADMISS_SITUATION")
    @TableField("ADMISS_SITUATION")
        private String admissSituation;

    @ApiModelProperty(value = "院前准备编码")
    @ExcelProperty(value = "PRE_READY_CODE")
    @TableField("PRE_READY_CODE")
        private String preReadyCode;

    @ApiModelProperty(value = "院前准备名称")
    @ExcelProperty(value = "PRE_READY_NAME")
    @TableField("PRE_READY_NAME")
        private String preReadyName;

    @ApiModelProperty(value = "是否31日内飞计划再次入院")
    @ExcelProperty(value = "IS_AGAIN")
    @TableField("IS_AGAIN")
        private String isAgain;

    @ApiModelProperty(value = "是否外伤入院编码")
    @ExcelProperty(value = "IS_TRAUMA_CODE")
    @TableField("IS_TRAUMA_CODE")
        private String isTraumaCode;

    @ApiModelProperty(value = "是否外伤入院名称")
    @ExcelProperty(value = "IS_TRAUMA_NAME")
    @TableField("IS_TRAUMA_NAME")
        private String isTraumaName;

    @ApiModelProperty(value = "需预交住院费")
    @ExcelProperty(value = "PRE_INPATIENT")
    @TableField("PRE_INPATIENT")
        private String preInpatient;

    @ApiModelProperty(value = "入院方式编码")
    @ExcelProperty(value = "BEIN_TYPE_CODE")
    @TableField("BEIN_TYPE_CODE")
        private String beinTypeCode;

    @ApiModelProperty(value = "入院方式名称")
    @ExcelProperty(value = "BEIN_TYPE_NAME")
    @TableField("BEIN_TYPE_NAME")
        private String beinTypeName;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "NOTES")
    @TableField("NOTES")
        private String notes;

    @ApiModelProperty(value = "预约时间")
    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建者")
    @ExcelProperty(value = "CREATE_BY")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "是否出院了  0:已出院 1:没出院")
    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

    @ApiModelProperty(value = "待床（1待床、2未待床）")
    @ExcelProperty(value = "WAITING_BED")
    @TableField("WAITING_BED")
    private String waitingBed;

}
